import request from '@/config/axios'

export interface replyVO {
  id: number
  keys: string
  content: string
  delay: number
}

// 查询自动回复列表
export const getReplyPage = async (params) => {
  return await request.get({ url: `/service/reply-config/page`, params })
}

// 新增自动回复
export const createReply = async (data: replyVO) => {
  return await request.post({ url: `/service/reply-config/create`, data })
}

// 更新
export const updateReply = async (data: StepVO) => {
  return await request.put({ url: `/service/reply-config/update`, data })
}

// 删除自动回复
export const deleteReply = async (id: number) => {
  return await request.delete({ url: `/service/reply-config/delete?id=` + id })
}
